<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "chindor_bank_account".
 *
 * @property string $account_id
 * @property integer $user_id
 * @property integer $create_time
 * @property integer $start_time
 * @property integer $continued_time
 * @property integer $finish_time
 * @property double $all_cost
 * @property integer $all_value
 * @property integer $all_gold
 * @property integer $disabled
 */
class BankAccount extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'chindor_bank_account';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'create_time', 'start_time', 'continued_time', 'finish_time', 'all_gold', 'disabled'], 'integer'],
            [['all_value'],'number'],
            [['all_cost'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'account_id' => 'Account ID',
            'user_id' => 'User ID',
            'create_time' => 'Create Time',
            'start_time' => 'Start Time',
            'continued_time' => 'Continued Time',
            'finish_time' => 'Finish Time',
            'all_cost' => 'All Cost',
            'all_value' => 'All Value',
            'all_gold' => 'All Gold',
            'disabled' => 'Disabled',
        ];
    }
}
